﻿using System;
using Mono.Rift.Core.Graphics;
using OpenTK;

namespace Mono.Rift.Core
{
	public class SceneView : Node
	{
		public SceneView ()
		{
		}

		public Matrix4 GetViewMatrix()
		{
			var orientation = this.Rot;
			var position = this.Pos;
			var conjugate = Quaternion.Conjugate (orientation);
			var translation = Matrix4.CreateTranslation (position);
			var view = Matrix4.Mult(Matrix4.CreateFromQuaternion(conjugate), translation);
			return view;
		}
	}
}

